import React, { Component } from 'react'
import { connect } from 'react-redux'
import { push } from 'connected-react-router'

class FetchState extends Component {
  componentDidMount() {
    const { match, link } = this.props
    link(`${match.url}/label`)
  }

  render() {
    return <div />
  }
}

const mapDispatchToProps = {
  link: push,
}

export default connect(
  null,
  mapDispatchToProps,
)(FetchState)
